package org.kl.bpm.entity.conf;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.kl.bf.entity.IdEntity;

/**
 * 
 * @Author hqm
 * @CreateTime 2014年5月25日 下午7:27:30
 */
@Entity
@Table(name = "BPM_CONF_COUNTERSIGN")
public class BpmConfCountersign extends IdEntity {
	private static final long serialVersionUID = 0L;
	private BpmConfNode bpmConfNode;
	private Integer sequential;
	private String participant;
	private Integer type;
	private Integer rate;

	public BpmConfCountersign() {
	}

	public BpmConfCountersign(BpmConfNode bpmConfNode, Integer sequential, String participant, Integer type, Integer rate) {
		this.bpmConfNode = bpmConfNode;
		this.sequential = sequential;
		this.participant = participant;
		this.type = type;
		this.rate = rate;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "NODE_ID")
	public BpmConfNode getBpmConfNode() {
		return this.bpmConfNode;
	}

	/**
	 * @param bpmConfNode
	 *            null.
	 */
	public void setBpmConfNode(BpmConfNode bpmConfNode) {
		this.bpmConfNode = bpmConfNode;
	}

	/** @return null. */
	@Column(name = "SEQUENTIAL")
	public Integer getSequential() {
		return this.sequential;
	}

	/**
	 * @param sequential
	 *            null.
	 */
	public void setSequential(Integer sequential) {
		this.sequential = sequential;
	}

	/** @return null. */
	@Column(name = "PARTICIPANT", length = 200)
	public String getParticipant() {
		return this.participant;
	}

	/**
	 * @param participant
	 *            null.
	 */
	public void setParticipant(String participant) {
		this.participant = participant;
	}

	/** @return null. */
	@Column(name = "TYPE")
	public Integer getType() {
		return this.type;
	}

	/**
	 * @param type
	 *            null.
	 */
	public void setType(Integer type) {
		this.type = type;
	}

	/** @return null. */
	@Column(name = "RATE")
	public Integer getRate() {
		return this.rate;
	}

	/**
	 * @param rate
	 *            null.
	 */
	public void setRate(Integer rate) {
		this.rate = rate;
	}
}
